﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using pay.Entity;

public partial class tg_pop : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string ozc = Request["ozc"];
        string ozs = Request["ozs"];
        string code = "";
        if (!string.IsNullOrEmpty(ozc) || !string.IsNullOrEmpty(ozs))
        {
            code = "ozc=" + ozc + "&ozs=" + ozs;
        }
        Session["tcode"] = code;
        if (!this.IsPostBack)
        {
            if (Session["EmoneyShopCard"] == null)
            {
                try
                {
                    List<ShopCard> lst  = new List<ShopCard>();
                    ShopCard sc = new ShopCard();
                    sc.Count = 1;
                    sc.ProductId = 47;
                    lst.Add(sc);
                    Session["EmoneyShopCard"] = lst;
                }
                catch (Exception ex)
                {
                    Response.Write("<script>alert('" + ex.Message + "'); this.history.back(-1);</script>");
                }
            }
        }
    }
}